﻿using System.Data;
using System.Diagnostics.CodeAnalysis;

namespace Swimj.DataCore
{
    public class ConditionDescriptor
    {
        [NotNull]
        public string? ParameterName { get; set; }

        [NotNull]
        public object? Value { get; set; }

        public DbType DbType { get; set; }

        public ConditionType ConditionType { get; set; } = ConditionType.Equal;

        public ConditionDescriptor(string? parameterName, object? Value)
        {
            this.ParameterName = parameterName;
            this.Value = Value;
        }

        public ConditionDescriptor()
        {
        }
    }
}